package com.atmilan.quartz.model.entity.crmeb;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 渠道商户表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_channel_merchant")
@ApiModel(value = "ChannelMerchant对象", description = "渠道商户表")
public class ChannelMerchant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "渠道id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "渠道类型")
    private Integer channelType;
    
    @TableField(exist = false)
    @ApiModelProperty(value = "平台加价率")
    private BigDecimal markupRate;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "可见品牌")
    private String brandIds;

    @ApiModelProperty(value = "可见供应商")
    private String suppliersIds;
    
    @ApiModelProperty(value = "商户号")
    private String merchantNo;
    
    @ApiModelProperty(value = "商户秘钥")
    private String merchantSecret;

    @ApiModelProperty(value = "运费模板id(1:大陆 2:港澳 3:意大利)")
    private String tempId;
    
    @ApiModelProperty(value = "收件详细地址,省+市+区+门牌号相加成完整地址")
    @NotBlank(message = "收货详细地址不能为空")
    private String detail;

    @ApiModelProperty(value = "收件人姓名")
    private String consigneeName;

    @ApiModelProperty(value = "收件人号码")
    private String consigneePhone;

    @ApiModelProperty(value = "商户回调地址")
    private String backUrl;
    
    @ApiModelProperty(value = "物流介绍图")
    private String logisticsImage;

    @ApiModelProperty(value = "店铺介绍图")
    private String storeImage;
    
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "是否自动上架（0否  1是）")
    private Integer automaticShelves;

}
